-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[full-ci] Implement people sharing for spaces #6455
Conversation
1c71bb8
to
365225c
Compare
Results for oC10SharingIntGroupsToRoot https://drone.owncloud.com/owncloud/web/23100/28/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
Results for oC10SharingIntGroupsToRoot https://drone.owncloud.com/owncloud/web/23109/28/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
Results for oC10SharingIntGroupsToRoot https://drone.owncloud.com/owncloud/web/23114/28/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
64546a0
to
cd90c58
Compare
Results for oC10SharingIntGroupsToRoot https://drone.owncloud.com/owncloud/web/23133/28/1 💥 The acceptance tests pipeline failed. The build has been cancelled. |
Results for oC10SharingIntGroupsToRoot https://drone.owncloud.com/owncloud/web/23139/28/1 |
Results for oC10SharingIntGroups https://drone.owncloud.com/owncloud/web/23139/27/1 |
Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/23145/11/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/23145/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2022-3-1-02-01-42.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/23145/tracing/alice-shares-file-to-brian-alice-2022-3-1-02-03-03.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/23145/tracing/alice-shares-file-to-brian-brian-2022-3-1-02-03-09.zip |
Results for oCISSharingInternal3 https://drone.owncloud.com/owncloud/web/23146/61/1
|
Results for oCISSharingAndUpload https://drone.owncloud.com/owncloud/web/23146/66/1
|
bbf4a57
to
d0717e9
Compare
Results for oCISFiles1 https://drone.owncloud.com/owncloud/web/23167/55/1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a first try in the web ui, I feel like talking about members
instead of people
would be more appropriate. Meaning:
1: Members
as title for the right sidebar panel
2: 1 member
, 7 members
in the link after the space title in the space root
Please discuss with @tbsbdr and @pmaier1
One more tiny detail: I think it would be more intuitive to have the three dots button for the spaces context menu after the title and only after that the members info. Looks a bit off, that the members info is in between the title and the three dots button.
When I try to share a space I get the following error message in the browser console (and nothing happens regarding sharing):
vendor-1671c65f.js:11 TypeError: i.shares.shareSpaceWithUser is not a function
at rx.addShare (web-app-files-d3f6f72f.js:1:209447)
at Array.<anonymous> (vendor-1671c65f.js:37:19210)
at rx.dispatch (vendor-1671c65f.js:37:20947)
at rx.dispatch (vendor-1671c65f.js:37:16415)
at rx.i.dispatch (vendor-1671c65f.js:37:18321)
at a.gx.forEach.r.<computed> (vendor-1671c65f.js:37:23607)
at web-app-files-d3f6f72f.js:1:258071
at vendor-1671c65f.js:37:33140
at Rx._tryToStartAnother (vendor-1671c65f.js:37:32187)
at vendor-1671c65f.js:37:33349
Sounds like you didn't link owncloud/owncloud-sdk#1013. My plan is to create a new alpha release once the PR is merged and add it here. But I'm still waiting for feedback from the OCIS team. |
updated screenshot above: Members-count has the icon now on the left. |
2cc64d5
to
16326e4
Compare
16326e4
to
7da85df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't feel intimidated by the number of change requests - they should be easily resolved. This PR is in really good shape and a huge step forward. Awesome! 🥳
packages/web-app-files/src/components/SideBar/Shares/InviteCollaborator/RecipientContainer.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/SideBar/Details/SpaceDetails.vue
Outdated
Show resolved
Hide resolved
...es/web-app-files/src/components/SideBar/Shares/InviteCollaborator/InviteCollaboratorForm.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/SideBar/Shares/SpaceShares.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/SideBar/Shares/SpaceShares.vue
Outdated
Show resolved
Hide resolved
@@ -361,6 +378,11 @@ export default { | |||
return 'state-trashed' | |||
} | |||
return '' | |||
}, | |||
async openSidebarSharePanel(space) { | |||
await this.closeSidebar() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it needed to close the sidebar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know why I added it, it's not :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, I found the issue again, it is. It seems to be necessary when toggling through the share panel in the spaces overview (via the people-indicator). Otherwise, the share panel does not get updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that an indicator for data not properly watched in the sharing panel? Can you look into that after merge? Closing and re-opening the sidebar feels a bit glitchy and might cause side effects in the future.
owncloud-sdk v2.1.0-alpha.3 has been merged to master in the meantime. Instead of rebasing, it should be sufficient to cherry-pick the commit |
7da85df
to
7a4b939
Compare
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! 😍
@@ -361,6 +378,11 @@ export default { | |||
return 'state-trashed' | |||
} | |||
return '' | |||
}, | |||
async openSidebarSharePanel(space) { | |||
await this.closeSidebar() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that an indicator for data not properly watched in the sharing panel? Can you look into that after merge? Closing and re-opening the sidebar feels a bit glitchy and might cause side effects in the future.
Description
Spaces can now be shared with other people. This change specifically includes:
Needs owncloud/owncloud-sdk#1013 to work properly.-> I've created a new alpha version for the SDK and updated the dependency in this PR. So runningyarn
is all you need to do.Note that this PR only tackles the sharing of spaces via people. It does not include:
Known issues
permissions
method of each role takesallowSharing
as argument, because this permission is not determined by the roles, but by the given backend (?). However, with spaces, this changes. I've overcome this for now by always passingtrue
to the method when dealing with shares... but there might be better solutions.Related Issue
Screenshots (if appropriate):
Types of changes
Checklist: